package com.qf.entity;

/**
 * @Author AzureSky_X
 * @Date 2020/11/16 17:02
 * @Version 1.0
 */
public class User {
    //主键id
    private Integer id;
    //用户名
    private String username;
    //密码
    private String password;
    //性别 0:女 1:男
    private Integer gender;
    //邮箱
    private String email;
    //角色  0：超级管理员  1：普通用户
    private Integer role;
    //状态 默认为0：未激活
    private Integer status;
    //激活码
    private String active_code;

    public User() {
    }

    public User(Integer id, String username, String password, Integer gender, String email, Integer role) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.gender = gender;
        this.email = email;
        this.role = role;

    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", gender=" + gender +
                ", email='" + email + '\'' +
                ", role=" + role +
                ", status=" + status +
                ", active_code='" + active_code + '\'' +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Integer getRole() {
        return role;
    }

    public void setRole(Integer role) {
        this.role = role;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getActive_code() {
        return active_code;
    }

    public void setActive_code(String active_code) {
        this.active_code = active_code;
    }
}
